import request from '@/utils/request'
export function getServiceMessage() {
  return request({
    method: 'post',
    url: '/service/Dynamic/getServiceMessage'
  })
}
export function getServiceDraftList() {
  return request({
    method: 'post',
    url: '/service/Dynamic/getServiceDraftList'
  })
}

export function getServiceDynamicList() {
  return request({
    url: '/service/Dynamic/getSelfDynamicList',
    method: 'post'
  })
}
export function getServiceDynamicAllList(status) {
  return request({
    url: '/service/Dynamic/getServiceDynamicList',
    method: 'post',
    data: {
      status
    }
  })
}
export function getOneDraftInfo(dynamic_id) {
  return request({
    url: '/service/Dynamic/getOneDraftInfo',
    method: 'post',
    data: {
      dynamic_id
    }
  })
}
export function getServiceDraftAllList(status) {
  return request({
    url: '/service/Dynamic/getServiceDraftAllList',
    method: 'post',
    data: {
      status
    }
  })
}
export function saveServiceDynamic(data) {
  return request({
    url: '/service/Dynamic/saveServiceDynamic',
    method: 'post',
    data
  })
}

export function delServiceDynamic(dynamic_id) {
  return request({
    url: '/service/Dynamic/delServiceDynamic',
    method: 'post',
    data: {
      dynamic_id
    }
  })
}
export function closeServiceMessage() {
  return request({
    url: '/service/Dynamic/closeServiceMessage',
    method: 'post'
  })
}
